package com.sphd.restaurantsystem.presenter;


import com.android.volley.VolleyError;
import com.sphd.restaurantsystem.model.OrderModelImpl;
import com.sphd.restaurantsystem.view.OrderView;

/**
* Created by Hu on 2016/11/07
*/

public class OrderPresenterImpl implements OrderPresenter {
    OrderModelImpl orderModel;
    OrderView orderView;

    public OrderPresenterImpl(OrderView orderView) {
        this.orderView = orderView;
        orderModel=new OrderModelImpl();
    }

    @Override
    public void addData(String url) {
        orderModel.sendUrl(url,this);
    }

    @Override
    public void sendError(VolleyError error) {

    }
}